package com.glance.browser.dao;

import java.util.List;

import com.glance.browser.domain.User;

public interface UserDAO {

	public boolean authenticate(String username, String password);

	public List<User> findAll();

	public User findByUsername (String username);

	public User save(User user);

	public List<User> findAll(int page, int pageSize);
	
	public void deleteAllExcept(String username);

	public long count();

	public boolean exists(String username);

	public void delete(String username);

	public void deleteAll();
}
